package com.kaifamiao.inherit;

// 定义类时，若未显式指定父类，则其父类默认是 java.lang.Object
public class Base {

    static {
        System.out.println( "Base:StaticInitializer");
    }

    {
        System.out.println( "Base:InstanceInitializer 1");
    }

    {
        System.out.println( "Base:InstanceInitializer 2");
    }

    public Base(){
        // 调用父类 Object 的无参构造
        super();
        System.out.println( "Base()");
    }

}
